/**
 * 
 */
package pt.mleiria.sAction.hibernate;

import java.util.List;
import java.util.Set;

/**
 * @author Manuel
 *
 */
public class Stock {
	private long id;
	private String ticker;
	private String name;
	private Set<StockData> stockDataSet;
	private Sector sector;
	private Index index;
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("[id:" + id + ";");
		sb.append("ticker:" + ticker + ";");
		sb.append("name:" + name + ";");
		sb.append("Set<StockData>;");
		sb.append("Sector;");
		sb.append("Index;]");
		return sb.toString();
	}
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return the ticker
	 */
	public String getTicker() {
		return ticker;
	}
	/**
	 * @param ticker the ticker to set
	 */
	public void setTicker(String ticker) {
		this.ticker = ticker;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the stockDataSet
	 */
	public Set<StockData> getStockDataSet() {
		return stockDataSet;
	}
	/**
	 * @param stockDataSet the stockDataSet to set
	 */
	public void setStockDataSet(Set<StockData> stockDataSet) {
		this.stockDataSet = stockDataSet;
	}
	/**
	 * @return the sector
	 */
	public Sector getSector() {
		return sector;
	}
	/**
	 * @param sector the sector to set
	 */
	public void setSector(Sector sector) {
		this.sector = sector;
	}
	/**
	 * @return the index
	 */
	public Index getIndex() {
		return index;
	}
	/**
	 * @param index the index to set
	 */
	public void setIndex(Index index) {
		this.index = index;
	}
	

}
